<template>
	<view>
		<button @click='toTest'>测试页</button>
		<button @click='toBarcode'>条形码</button>
		<button @click='getUserInfo'>用户信息</button>
		<button @click='getLocation'>地理位置</button>
	</view>
</template>


<script>
	export default {
		components: {
			
		},
		data() {
			return {
				img: this.$img,
			}
		},

		methods: {
			toTest() {
				uni.navigateTo({
					url: '../subpack/test',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},
			toBarcode() {
				uni.navigateTo({
					url: '../subpack/barCode',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},
			getUserInfo() {
				uni.navigateTo({
					url: '../subpack/userInfo',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},
			getLocation() {
				uni.navigateTo({
					url: '../subpack/location',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},
		},

		mounted() {
			
		},
	}
</script>

<style lang="scss" scoped>
	.userpic {
		width: 20px;
		height: 20px;
	}
</style>